package com.yj.transport.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * Created by zhengguanyong on 2017/12/6.
 */
@Data
@ApiModel
public class TransportJournal {
    //运输轨迹表

    @ApiModelProperty(value = "自增id", hidden = true)
    private Integer id;

    @ApiModelProperty(value = "运输信息id")
    private Integer transport_info_id;

    @ApiModelProperty(value = "运输方式(0:未设置,1:汽车,2:火车,3:船舶)")
    private int transport_type;

    @ApiModelProperty(value = "抵达地")
    private String arrive_place;

    @ApiModelProperty(value = "抵达时间 2017-12-08 11:10:03", example = "2017-12-08 11:10:03")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime arrive_time;

    @ApiModelProperty(value = "经度 123.578394")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度 89.139483")
    private BigDecimal latitude;

    @ApiModelProperty(value = "当前地点是起始途中点(0:起点,1:途中,2:终点)")
    private int place_type;

    @ApiModelProperty(value = "创建时间", example = "2017-12-08 11:10:03", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime create_time;
}
